import Vue from "vue";
import VueRouter from "vue-router";
import mainIndex from "../components/mainIndex.vue";
import videoPlay from "../components/videoPlay.vue";
import cinemaWrap from "../components/cinemaWrap.vue";
import loginWrap from "../components/loginWrap.vue";
import userCenter from "../components/userCenter.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "mainIndex",
    component: mainIndex,
  },
  {
    path: "/videoPlay",
    name: "videoPlay",
    component: videoPlay,
  },
  {
    path: "/cinemaWrap",
    name: "cinemaWrap",
    component: cinemaWrap,
  },
  {
    path: "/loginWrap",
    name: "loginWrap",
    component: loginWrap,
  },
  {
    path: "/userCenter",
    name: "userCenter",
    component: userCenter,
  },
];

const router = new VueRouter({
  routes,
});

export default router;
